Skip to content

fix: scope policy-bot to cherry-pick PRs on release branches only#82

Merged
Qbandev merged 1 commit into
mainfrom
fix/policy-bot-scope-cherry-pick-only
Mar 5, 2026
Merged

fix: scope policy-bot to cherry-pick PRs on release branches only#82
Qbandev merged 1 commit into
mainfrom
fix/policy-bot-scope-cherry-pick-only

Conversation

@Qbandev
Copy link
Copy Markdown
Contributor

@Qbandev Qbandev commented Mar 5, 2026

Summary

  • Removes the "standard human review" rule from policy.yml which had no if conditions, causing policy-bot to post a pending status on every PR across all installed repos (e.g., metamask-mobile #26861)
  • Keeps only the "cherry-pick auto-approval" rule so policy-bot only evaluates cherry-pick PRs targeting release/* branches
  • Non-matching PRs will now get a "skipped" status instead of "pending"

Test plan

  • After merge, verify PR metamask-mobile #26861policy-bot: main status should change from "pending" to "skipped" on next re-evaluation
  • Open a test cherry-pick PR targeting a release/* branch — should still get auto-approved (status: success)
  • Open/check a regular PR targeting main — policy-bot should NOT show a pending status

🤖 Generated with Claude Code

The "standard human review" rule had no `if` conditions, causing
policy-bot to post a `pending` status on every PR across all installed
repos. Removing it so only cherry-pick PRs targeting release/* branches
are evaluated; all other PRs will get a "skipped" status.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@Qbandev Qbandev merged commit 9d24585 into main Mar 5, 2026
2 checks passed
@Qbandev Qbandev deleted the fix/policy-bot-scope-cherry-pick-only branch March 5, 2026 09:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants